package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the returnes database table.
 * 
 */
@Entity
@Table(name="returnes")
@NamedQuery(name="Returne.findAll", query="SELECT r FROM Returne r")
public class Returne implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ret_id")
	private int retId;

	@Column(name="ret_money")
	private BigDecimal retMoney;

	@Column(name="ret_name")
	private String retName;

	@Temporal(TemporalType.DATE)
	@Column(name="ret_time")
	private Date retTime;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ret_salesstate")
	private Dictionary dictionary1;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ret_inventorystate")
	private Dictionary dictionary2;

	//bi-directional many-to-one association to Orderform
	@ManyToOne
	@JoinColumn(name="o_id")
	private Orderform orderform;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;


	public Returne() {
	}

	public int getRetId() {
		return this.retId;
	}

	public void setRetId(int retId) {
		this.retId = retId;
	}

	public BigDecimal getRetMoney() {
		return this.retMoney;
	}

	public void setRetMoney(BigDecimal retMoney) {
		this.retMoney = retMoney;
	}

	public String getRetName() {
		return this.retName;
	}

	public void setRetName(String retName) {
		this.retName = retName;
	}

	public Date getRetTime() {
		return this.retTime;
	}

	public void setRetTime(Date retTime) {
		this.retTime = retTime;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public Orderform getOrderform() {
		return this.orderform;
	}

	public void setOrderform(Orderform orderform) {
		this.orderform = orderform;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}



}